﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CSharp
{
    public class Teacher:Person
    {
        //public int Id { get; set; }
        //public int Age { get; set; }
        public int Salary { get; set; }

        //集合（Collection）：引用其他多个 Entity的集合
        //单向Entity，只有Teacher引用了Students
        public virtual IList<Student> Students { get; set; }
    }
}
